<?php


if(!function_exists('img_jsons_to_array')){
   	//json转成
    function img_jsons_to_array($json){
        $res = json_decode($json,true);
        $data = array('img_path' => array(), 'img_name' => array());
        if(!empty($res)){
            foreach($res as $key => $value){                
                $data['img_path'][] = $key;
                $data['img_name'][] = $value;
            }
        }
        return $data;
    }
}